package main

import (
	msprocess "gitee.com/nggs/microservice/process"
)

func newProcessConfig() msprocess.Config {
	cfg := msprocess.Config{
		Services: []msprocess.ServiceConfig{
			{"service", 1},
		},
		StartServiceIntervalMillisecond: 100,
		StopServiceIntervalMillisecond:  100,
		ExitWaitSecond:                  5,
	}
	cfg.SetID(1)
	return cfg
}

func main() {
	p := msprocess.NewSuper(newProcessConfig())
	err := p.Run()
	if err != nil {
		panic(err)
		return
	}
}
